package com.netease.login.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.netease.login.dao.UserDao;
import com.netease.meta.User;

@Service
public class UserService {
	@Autowired
	private UserDao userDao;
	public boolean hasMatchUser(String userName,String userPassword){
		int matchCount = userDao.getMatchCount(userName, userPassword);
		return matchCount>0;
		
	}
	public User findUserByUserName(String userName){
		return userDao.findUserByName(userName);
		
	}

}
